package com.JadeForum.forum.services;

import com.JadeForum.forum.model.ArticleReply;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: yyx
 * Date: 2024-05-09
 * Time: 20:59
 */
public interface IArticleReplyService {
    /**
     * 新增帖子回复
     * @param articleReply
     */
    @Transactional
    void create (ArticleReply articleReply);
    /**
     * 根据帖子Id查询所有的回复
     * @param articleId
     * @return
     */
    List<ArticleReply> selectByArticleId ( Long articleId);
}
